<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>None-Props</title>
</head>
<body>
  <div id="app"></div>
  <script src="https://unpkg.com/vue@next"></script>
  <script>
    const app = Vue.createApp({
      template: `
        <div>计数器：<counter /></div>
      `
    })

    app.component('Counter', {
      data() {
        return {
          count: 0
        }
      },
      template: `
        <button @click="count--">-</button>{{count}}<button @click="count++">+</button>
      `
    })

    app.mount('#app')
  </script>
</body>
</html>